package com.lala.provider.controller;

import com.github.pagehelper.PageInfo;
import com.lala.commom.pojo.Teacher;
import com.lala.commom.pojo.User;
import com.lala.commom.remote.TeacherRemote;
import com.lala.commom.remote.UserRemote;
import com.lala.provider.service.TeacherService;
import com.lala.provider.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TeacherController implements TeacherRemote {

    @Autowired
    private TeacherService teacherService;
    @Override
    public PageInfo<Teacher> selectTeacher(int p, int s) {
        return teacherService.selectTeacher(p, s);
    }

    @Override
    public List<Teacher> selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateTeacherTy(Integer id) {
        return 0;
    }

    @Override
    public int updateTeacherBty(Integer id) {
        return 0;
    }

    @Override
    public PageInfo<Teacher> selectTeacher1(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public int updateType(Teacher teacher) {
        return 0;
    }

    @Override
    public int deleteTeacher(Integer id) {
        return 0;
    }
}
